<?php
 header("content-type:text/html;charset=utf-8");
 include "../config/mysql.php";
 session_start();
 if($_SESSION['username']){
 $id=$_GET["id"];
 $tr=$pdo->exec("delete from article_kind where id=$id");
 $tr1=$pdo->exec("delete from article_content where kid=$id");
 if($tr||$tr1){
  	header("refresh:1;url=../control_kid.php");
    print('删除成功，请稍等...');
  }else{
    header("refresh:11;url=../control_kid.php");
    print('删除失败，请稍等...');
  }
}else{
	header("Location:../log.php");
      exit();
}     

